<?php
require_once('../common/adodb/adodb.inc.php');
require_once('db_name_config.inc.php'); 
require_once('../store/library/sqlConfig.php');
if (is_object($conn) == FALSE) {
	$conn = &ADONewConnection('mysqli');
	$conn -> Connect($_SERVER["kkyooDB_HOST"],$_SERVER["kkyooDB_NAME"],$_SERVER["kkyooDB_PASS"],DB_NAME_ROOMS);
	$conn -> debug = false;
}
if(!defined('ACCOUNT_INIT')) exit('Access Denied!');
	$db_core = new mysqli($_SERVER["kkyooDB_HOST"],$_SERVER["kkyooDB_NAME"],$_SERVER["kkyooDB_PASS"],DB_NAME_AUTH);
if (mysqli_connect_errno()){
	exit('Connection Failure!');
}
function close_conn($link){
	mysqli_close($link);
}
function free_result($result){
	mysqli_free_result($result);
}
function next_result($link){
	mysqli_next_result($link);
}
function fetch_array($result){
	$i = 0;
	while($row = $result->fetch_array()){
		$row_arr[$i] = $row;
		$i++;
	}
	return $row_arr;
}
?>
